//
//  PrefixHelper.h
//  NPS
//
//  Created by jadd on 15/10/12.
//  Copyright © 2015年 jadd. All rights reserved.
//

#ifndef PrefixHelper_h
#define PrefixHelper_h
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~NETWORK~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define K_Domain             @"http://192.168.1.189:8888"  //@"http://nps.wenjuan.com"  //@"http://192.168.10.203:8080" 
#define API_Login            @"/api/login"
#define API_Logout           @"/api/logout"
#define API_Change_Logo      @"/api/change_logo"
#define API_ModifyPassword   @"/api/change_password"
#define API_StoresInfo       @"/api/stores"
#define API_AddStore         @"/api/stores"
#define API_ModifyStore      @"/api/stores"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~NETWORK~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


#define globalUMengAppKey     @"5629d3bbe0f55a5984000eb7"
//微信
#define globalWeiXinAppID     @"wxe9972bc9ee7cb9d9"
#define globalWeiXinSecret    @"d4624c36b6795d1d99dcf0547af5443d"
#define K_UMeng_WeiChat_Url   @"http://www.idiaoyan.com"
//QQ
#define globalQQAppID         @"1104852703"
#define globalQQAppKey        @"0T4W6hGVDZTUtPBd"

#define globalSinaAppKey      @"850532728"
#define globalSinaAppSecret   @"dd0e2f1453994312510c0f7e3db15175"

#define K_UMeng_Sina_Callback  @"http://sns.whalecloud.com/sina2/callback"

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~UserDefaults~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define UserDefault_uid  @"uid"
#define UserDefault_access_key  @"access_key"
#define UserDefault_uName  @"userName"
#define UserDefault_logo  @"logo"
#define UserDefault_answerOnce  @"isAnswerOnce"
#define UserDefault_answerTimes  @"AnswerTimes"

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~UserDefaults~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)


#define K_Global_BackButton_Width  40
#define K_Global_BackButton_Height 25

#define K_Global_ColorHexString_Normal @"#46b4c1"
#define K_Global_ColorHexString_Pressed @"#2e95c2"
#define K_Global_ColorHexString_Store @"#53a4f4"


#define K_ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define K_ScreenHeight [[UIScreen mainScreen] bounds].size.height

//setting
#define K_FirstStartKey                 @"firstStart"   //第一次安装的引导是否显示过

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COLOR~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define BACK_VIEW_COLOR [UIColor colorWithRed:239/255.0 green:239/255.0 blue:244/255.0 alpha:1.0]
#define STORE_LINE_COLOR [UIColor colorWithRed:210/255.0 green:220/255.0 blue:220/255.0 alpha:1.0]
#define SVProgress_Background [UIColor colorWithRed:0.1f green:0.1f blue:0.1f alpha:0.9f]
#define Gray [UIColor grayColor]
#define TEXT_COLOR [UIColor colorWithRed:65.0/255.0 green:125.0/255.0 blue:160.0/255.0 alpha:1.0]
#define BButtonTypeWarning [UIColor colorWithRed:0.97f green:0.58f blue:0.02f alpha:1.00f]
#define LINE_GRAY_COLOR  [UIColor colorWithRed:188.0/255 green:188.0/255  blue:188.0/255 alpha:0.6f]
#define BButtonTypeDefault [UIColor colorWithRed:0.85f green:0.85f blue:0.85f alpha:1.00f];
#define BButtonTypeSuccess [UIColor colorWithRed:0.32f green:0.64f blue:0.32f alpha:1.00f];
#define BButtonTypeInfo [UIColor colorWithRed:0.18f green:0.59f blue:0.71f alpha:1.00f];
#define DEFAULT_LINE_GRAY_COLOR [UIColor colorWithRed:188.0/255 green:188.0/255  blue:188.0/255 alpha:0.6f]
#define BButtonTypeStore [UIColor colorWithRed:80.0/255 green:163.0/255  blue:244.0/255 alpha:0.6f] //添加店铺
#define TEXT_COLOR_Commend [UIColor colorWithRed:83.0/255.0 green:163.0/255.0 blue:244.0/255.0 alpha:1.0] //推荐指数
#define TEXT_COLOR_Sat [UIColor colorWithRed:76.0/255.0 green:210.0/255.0 blue:97.0/255.0 alpha:1.0] //满意度

#define BLACK    [UIColor blackColor]
#define GRAY     [UIColor grayColor]
#define WHITE    [UIColor whiteColor]
#define CLEAR    [UIColor clearColor]
#define RED      [UIColor redColor]
#define DARKGRAY [UIColor darkGrayColor]
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COLOR~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#endif /* PrefixHelper_h */
